package com.crm.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 用户信息表(User)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-07 17:46:38
 */
@Mapper
public interface UserMapper extends BaseMapper<SysUser> {

    /**
     * 根据用户名查询用户信息
     *
     * @param username
     * @return
     */
    @Select("select * from sys_user where user_name = #{username}")
    SysUser selectOneByUserName(String username);
}

